import init from '@feidao/web/framework/browser/d/component';

import s from './s';

import { id } from './config';
import * as params from './config';

////////////////////////////////////////////////////////////////////////////////
// import actions
import a000 from './a000';
import a011 from './a011';
import a031 from './a031';
import a032 from './a032';
import a033 from './a033';
import a034 from './a034';
import a035 from './a035';
import a036 from './a036';
import a051 from './a051';
import a052 from './a052';
import a053 from './a053';
import a071 from './a071';
import a072 from './a072';

////////////////////////////////////////////////////////////////////////////////

const actions = {
	a000, a011, a031, a032, a033, a034, a035, a036, a051, a052, a053, a071, a072
};

export default function main(url: string, query: any) {
	return init(id, s, actions, url, query, params);
}
